<?php

Router::connect('/', array(
    'controller' => 'pages',
    'action' => 'display',
    'home'
    )
);
/**
 * ...and connect the rest of 'Pages' controller's URLs.
 */
Router::connect('/pages/*', array(
    'controller' => 'pages',
    'action' => 'display'
    )
);

/* category */
Router::connect('/danh-muc/*', array(
    'controller' => 'categories',
    'action' => 'index'
    )
);

/* products */
Router::connect('/san-pham/*', array(
    'controller' => 'products',
    'action' => 'index'
    )
);

/* shopping cart */
Router::connect('/gio-hang/*', array(
    'controller' => 'carts',
    'action' => 'index'
    )
);

Router::connect('/dang-nhap/*', array(
    'controller' => 'users',
    'action' => 'login'
    )
);

/* general page */
Router::connect('/gioi-thieu', array(
    'controller' => 'articles',
    'action' => 'aboutus'
    )
);

Router::connect('/khuyen-mai/*', array(
    'controller' => 'articles',
    'action' => 'index'
    )
);
